package com.chendx.store.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chendx.model.common.dtos.ResponseResult;
import com.chendx.model.order.dto.ReturnOrderDto;
import com.chendx.model.order.pojo.ReturnOrder;

/**
 * Created by chendx on 2022/4/21.
 */
public interface ReturnOrderService extends IService<ReturnOrder> {

    /**
     * 申请退款
     * @param dto
     * @return
     */
    ResponseResult returnOrder(ReturnOrderDto dto);

    /**
     * 退款详情
     * @param id
     * @return
     */
    ResponseResult returnDetail(String id);

    /**
     * 取消退款申请
     * @param dto
     * @return
     */
    ResponseResult close(ReturnOrderDto dto);
}
